Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         AtNameLabel      = null;
         datelabel        = null;
         replyBtn         = null;
         TweetBlock       = null;
         tweetImg         = null;
         contextmenu      = null;
         dbUser           = null;
         ID               = null;
         imageborder      = null;
         label1           = null;
         messagePolygon   = null;
         name             = null;
         NameLabel        = null;
         parent           = null;
         polyOpacity      = 0;
         replyBtn         = null;
         replyimageborder = null;
         Status           = null;
         tweetelementgrid = null;
         DM_Element       = null;
     }
 }
Example #2
0
        public DMElement(MainWindow1 prnt, TwitterDirectMessage status, UserDatabase.User usr, ImageSource Imagesource, bool MoreThanOneUser = false)
        {
            InitializeComponent();
            dbUser = usr;
            moreusers = MoreThanOneUser;
            name = status.Sender.ScreenName;
            tweetImg.Source = Imagesource;
            ID = status.Id.ToString();
            Status = status;

            parent = prnt;
            SolidColorBrush gBrush = new SolidColorBrush(Color.FromArgb((byte)(polyOpacity * 255), 0, 0, 0));
            messagePolygon.Fill = gBrush;
        }
Example #3
0
        public DMElement(MainWindow1 prnt, TwitterDirectMessage status, UserDatabase.User usr, ImageSource Imagesource, bool MoreThanOneUser = false)
        {
            InitializeComponent();
            dbUser          = usr;
            moreusers       = MoreThanOneUser;
            name            = status.Sender.ScreenName;
            tweetImg.Source = Imagesource;
            ID     = status.Id.ToString();
            Status = status;

            parent = prnt;
            SolidColorBrush gBrush = new SolidColorBrush(Color.FromArgb((byte)(polyOpacity * 255), 0, 0, 0));

            messagePolygon.Fill = gBrush;
        }
Example #4
0
        public notify(MainWindow1 parentWindow)
        {
            parent = parentWindow;
            InitializeComponent();
            this.Left = ((parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Location.X + parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Width) - this.Width) - 107;
            this.Top  = parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Location.Y - this.Height;

            ypos = parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Location.Y;
            this.Show();
            this.SetAeroGlass();

            this.Topmost   = Properties.Settings.Default.TopMostNotify;
            Timer.Tick    += new EventHandler(timer_Tick);
            Timer.Interval = (1);
            Timer.Start();
        }
Example #5
0
        public notify(MainWindow1 parentWindow)
        {
            parent = parentWindow;
            InitializeComponent();
            this.Left = ((parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Location.X + parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Width) - this.Width) - 107;
            this.Top =  parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Location.Y-this.Height;

            ypos = parent.Displays[Properties.Settings.Default.DisplayIndex].Bounds.Location.Y;
            this.Show();
            this.SetAeroGlass();

            this.Topmost = Properties.Settings.Default.TopMostNotify;
            Timer.Tick += new EventHandler(timer_Tick);
            Timer.Interval = (1);
            Timer.Start();
        }
Example #6
0
        public TweetElement(MainWindow1 prnt, TwitterStatus status, UserDatabase.User usr, ImageSource Imagesource, bool MoreThanOneUser = false)
        {
            InitializeComponent();
            dbUser = usr;
            moreusers = MoreThanOneUser;
            name = status.User.ScreenName;
            tweetImg.Source = Imagesource;
            ID = status.Id.ToString();
            Status = status;

            favBtn.MouseDown += new MouseButtonEventHandler(favBtn_MouseDown);

            if (status.Retweeted != true)
            {
                retweetBtn.MouseDown += new MouseButtonEventHandler(retweetBtn_MouseDown);
            }

            parent = prnt;
            SolidColorBrush gBrush = new SolidColorBrush(Color.FromArgb((byte)(polyOpacity * 255), 0, 0, 0));
            messagePolygon.Fill = gBrush;
        }
Example #7
0
        public TweetElement(MainWindow1 prnt, TwitterStatus status, UserDatabase.User usr, ImageSource Imagesource, bool MoreThanOneUser = false)
        {
            InitializeComponent();
            dbUser          = usr;
            moreusers       = MoreThanOneUser;
            name            = status.User.ScreenName;
            tweetImg.Source = Imagesource;
            ID     = status.Id.ToString();
            Status = status;

            favBtn.MouseDown += new MouseButtonEventHandler(favBtn_MouseDown);

            if (status.Retweeted != true)
            {
                retweetBtn.MouseDown += new MouseButtonEventHandler(retweetBtn_MouseDown);
            }

            parent = prnt;
            SolidColorBrush gBrush = new SolidColorBrush(Color.FromArgb((byte)(polyOpacity * 255), 0, 0, 0));

            messagePolygon.Fill = gBrush;
        }
Example #8
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         AtNameLabel = null;
         datelabel = null;
         favBtn = null;
         replyBtn = null;
         retweetBtn = null;
         TweetBlock = null;
         tweetImg = null;
         contextmenu = null;
         dbUser = null;
         favimageborder = null;
         ID = null;
         imageborder = null;
         label1 = null;
         messagePolygon = null;
         name = null;
         NameLabel = null;
         parent = null;
         polyOpacity = 0;
         replyBtn = null;
         replyimageborder = null;
         retweetBtn = null;
         retweetimageborder = null;
         Status = null;
         tweetelementgrid = null;
         tweetElement = null;
     }
 }