public override void Initialize(PreferencesDialog dialog, object dataObject) { base.Initialize(dialog, dataObject); if (dataObject.GetType() == typeof(Project)) { project = (Project)dataObject; } }
protected override void OnActivated() { base.OnActivated(); PreferencesDialog pd = new PreferencesDialog(TypPreferences.GlobalSetting,MainClass.Languages.Translate("settings")); int result = pd.Run(); if (result == (int)ResponseType.Ok) { MainClass.Settings.SaveSettings(); MainClass.MainWindow.ReloadSettings(true); } pd.Destroy(); }
protected override void OnActivated() { base.OnActivated(); if (MainClass.Workspace.ActualProject == null){ MessageDialogs md = new MessageDialogs(MessageDialogs.DialogButtonType.Ok, "Please, select project.", "", Gtk.MessageType.Error); md.ShowDialog(); return; } PreferencesDialog pd = new PreferencesDialog(TypPreferences.ProjectSetting,MainClass.Workspace.ActualProject,MainClass.Workspace.ActualProject.ProjectName); int result = pd.Run(); if (result == (int)ResponseType.Ok) { MainClass.Workspace.SaveProject(MainClass.Workspace.ActualProject); } pd.Destroy(); }
public override void Initialize(PreferencesDialog dialog, object dataObject) { base.Initialize(dialog, dataObject); }
public override void Initialize(PreferencesDialog dialog, object dataObject) { base.Initialize(dialog, dataObject); if (dataObject.GetType() == typeof(FilePropertisData)) fcd = (FilePropertisData)dataObject; }
public override void Initialize(PreferencesDialog dialog, object dataObject) { base.Initialize(dialog, dataObject); if (dataObject.GetType() == typeof(Project)) project = (Project)dataObject; }
public override void Initialize(PreferencesDialog dialog, object dataObject) { base.Initialize(dialog, dataObject); if (dataObject.GetType() == typeof(DevicePropertyData)) { dpd = (DevicePropertyData)dataObject; Rule plarform = dpd.Device.Platform;//MainClass.Settings.Platform.Rules.Find(x=>x.Id ==dpd.Device.TargetPlatformId); if (plarform != null) { label = plarform.Name;//dpd.Device.TargetPlatform; switch (dpd.Device.Devicetype) { //switch ((DeviceType)dpd.Device.MobileOs) { case DeviceType.Android_1_6:{ ico = "android.png"; break;} case DeviceType.Android_2_2:{ ico = "android.png"; break;} case DeviceType.Bada_1_0: case DeviceType.Bada_1_1: case DeviceType.Bada_1_2: case DeviceType.Bada_2_0:{ ico = "bada.png"; break;} case DeviceType.Symbian_9_4:{ ico = "symbian.png"; break;} case DeviceType.iOS_5_0:{ ico = "apple.png"; break;} case DeviceType.PocketPC_2003SE: case DeviceType.WindowsMobile_5: case DeviceType.WindowsMobile_6:{ ico = "windows.png"; break;} case DeviceType.Windows:{ ico = "win32.png"; break;} case DeviceType.MacOs:{ ico = "macos.png"; break;} default:{ ico = "empty.png"; break;} } } else label = "INVALIDATE"; } }
public virtual void Initialize(PreferencesDialog dialog,object dataObject) { dlg = dialog; this.dataObject = dataObject; }
public virtual void Initialize(PreferencesDialog dialog, object dataObject) { dlg = dialog; this.dataObject = dataObject; }