示例#1
0
 public wMain(Host _AppObjects)
 {
     InitializeComponent();
     AppObjects = _AppObjects;
     this.Owner = _AppObjects.wMain;
     CurOffset = 0;                        
 }
示例#2
0
        public wMain(Host _AppObjects)
        {
            try
            {
                InitializeComponent();
                lmf= MemoryField.LoadData("addresses.txt");
                Tag = this.Title;
                coll = new ObservableCollection<MemoryField>();
               // coll.Add(new MemoryField() { Address = Convert.ToString(0x450BBC, 16), Type = "BattleTime", Comment = "" });
                foreach (MemoryField mf in lmf) coll.Add(mf);
                dgMemory.ItemsSource = coll;
                dgMemory.Items.Refresh();
                dgMemory.CanUserReorderColumns = false;
                AppObjects = _AppObjects;               
                this.Owner = AppObjects.wMain;
                _timer = new DispatcherTimer();
                _timer.Tick += new EventHandler(_timer_Tick);

                lsFonts = new List<string>();
                foreach (FontFamily s in Fonts.SystemFontFamilies)
                lsFonts.Add(s.Source);
                FontFamily fm = new System.Windows.Media.FontFamily(SystemFonts.CaptionFontFamily.Source);
                
                dgMemory.FontFamily = fm;
                dgMemory.UpdateLayout();
                
                Start_Click(null, null);                                
            }
            catch (Exception)
            {
                _timer.Stop();
                throw;
            }
        }
示例#3
0
        public wMain(Host _AppObjects)
        {
            InitializeComponent();
            AppObjects = _AppObjects;
            teHeader.Text = "state: 0  wait: 5  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0";
            te_itr.Text = "kind: 3  x: 40  y: 16  w: 25  h: 65\n      catchingact: 120 120  caughtact: 130 130";
            try
            {
                teHeader.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                teResult.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                te_bpoint.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                te_wpoint.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                te_itr.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                te_bdy.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                te_cpoint.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
                te_opoint.SyntaxHighlighting = HighlightingLoader.Load(new XmlTextReader(AppObjects.wMain.programfolder + "lf2.xshd"), HighlightingManager.Instance);
            }
            catch (Exception ex) { new wException(ex).ShowDialog(); }

        }
示例#4
0
 public wMain(Host _AppObjects)
 {
     InitializeComponent();
 }
示例#5
0
 public void SilentExecute(Host _AppObjects)
 {
     AppObjects = _AppObjects;
 }