Example #1
0
        public GraphicObject LoadTest(string id)
        {
            testId = id;
            loadTime.Start();
            GraphicObject tmp = Interface.Load("Interfaces/" + testId + ".crow", this);

            loadTime.Stop();
            AddWidget(tmp);
            return(tmp);
        }
Example #2
0
 protected void loadWindow(string path, object dataSource = null)
 {
     try {
         Widget w = crow.FindByName(path);
         if (w != null)
         {
             crow.PutOnTop(w);
             return;
         }
         w            = crow.Load(path);
         w.Name       = path;
         w.DataSource = dataSource;
     } catch (Exception ex) {
         System.Diagnostics.Debug.WriteLine(ex.ToString());
     }
 }