[longomatch] Added Project property
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Added Project property
- Date: Thu, 25 Mar 2010 20:48:24 +0000 (UTC)
commit 08bfd061d688f23ba61066ad45be25d26aacac4d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 7 17:26:17 2010 +0100
Added Project property
LongoMatch/Gui/Dialog/NewProjectDialog.cs | 13 +++++++++----
LongoMatch/Gui/MainWindow.cs | 4 ++--
2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch/Gui/Dialog/NewProjectDialog.cs b/LongoMatch/Gui/Dialog/NewProjectDialog.cs
index f70ad3b..d888c85 100644
--- a/LongoMatch/Gui/Dialog/NewProjectDialog.cs
+++ b/LongoMatch/Gui/Dialog/NewProjectDialog.cs
@@ -38,12 +38,17 @@ namespace LongoMatch.Gui.Dialog
public ProjectType Use {
set {
- this.fdwidget.Use = value;
+ fdwidget.Use = value;
}
}
-
- public Project GetProject() {
- return this.fdwidget.GetProject();
+
+ public Project Project{
+ get {
+ return fdwidget.GetProject();
+ }
+ set{
+ fdwidget.SetProject(value);
+ }
}
}
}
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index a248bc5..3eba047 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -370,7 +370,7 @@ namespace LongoMatch.Gui
npd.TransientFor = this;
npd.Use = type;
int response = npd.Run();
- while (response == (int)ResponseType.Ok && npd.GetProject() == null) {
+ while (response == (int)ResponseType.Ok && npd.Project == null) {
MessagePopup.PopupMessage(this, MessageType.Info,
Catalog.GetString("Please, select a video file."));
response=npd.Run();
@@ -378,7 +378,7 @@ namespace LongoMatch.Gui
npd.Destroy();
// Si se cumplen las condiciones y se ha pulsado el botón aceptar continuamos
if (response ==(int)ResponseType.Ok) {
- project = npd.GetProject();
+ project = npd.Project;
if (type == ProjectType.NewFileProject) {
try {
MainClass.DB.AddProject(project);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]