Beispiel #1
0
        public MainPanel()
        {
            this.Build();

            ironFileEntry.Path         = IronManager.GetInterpreterPath();
            ironFileEntry.PathChanged += (o, e) => UpdateStatus(ironFileEntry.Path);

            UpdateStatus(ironFileEntry.Path);
        }
Beispiel #2
0
        void UpdateStatus(string path)
        {
            string version;

            if (IronManager.TryGetRuntimeVersion(path, out version))
            {
                fileEntryImage.SetFromStock(Gtk.Stock.Ok, Gtk.IconSize.Button);
                informationLabel.LabelProp = version;
            }
            else
            {
                fileEntryImage.SetFromStock(Stock.Error, Gtk.IconSize.Button);
                informationLabel.LabelProp = "Specify a valid interpreter first.";
            }
        }
Beispiel #3
0
 public override void ApplyChanges()
 {
     IronManager.SetInterpreterPath(panel.InterpreterPath);
 }